using IQIGame.Onigao.Game;
using UnityEngine;

namespace IQIGame.Onigao.GamePlay.Editors
{
    public class GenArtPrefabLevelCharacter : GenArtPrefabLevelEntity
    {
        public override ArtModeGenType genPrefabType => ArtModeGenType.LevelCharacter;

        protected override string outputBasePath => "Res/02_Character";

        protected override int prefabLayer => (int)LayerConsts.Character;
        protected override string entityGenConfigPath => $"Assets/EditorConfig/ArtToolConfig/EntityGen/Character/{entityName}.asset";
        protected override string defaultGenConfigPath => "Assets/EditorConfig/ArtToolConfig/EntityGen/Common/Entity_LevelCharacter.asset";

        protected override void GenPrefabExtra(GameObject rootObj, GameObject modelObj)
        {
            base.GenPrefabExtra(rootObj, modelObj);
            rootObj.AddComponent<GameAudioListener>();
        }
    }
}
